package leetcode.medium.coinchange;

import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Test;

public class SolutionTest {
    private static Solution solution;

    @BeforeClass
    public static void setup() {
        solution = new Solution();
    }

    @AfterClass
    public static void tearUp() {
        solution = null;
    }

    @Test
    public void test1() {
        int[] coins = {1,2,5};
        int amount = 11;
        Assert.assertEquals(3, solution.coinChange(coins, amount));
    }

    @Test
    public void test2() {
        int[] coins = {2};
        int amount = 3;
        Assert.assertEquals(-1, solution.coinChange(coins, amount));
    }

    @Test
    public void test3() {
        int[] coins = {1};
        int amount = 0;
        Assert.assertEquals(0, solution.coinChange(coins, amount));
    }
}
